package rm.member.business.domain.convert;


import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import rm.member.business.domain.DO.ChangeDepositLgDetailDO;
import rm.member.business.domain.DO.MemberChangeInfoDetailDo;
import rm.member.business.domain.DTO.OrderInfoDTO;

/**
 *  * N2--
 * OrderInfoDTO-->MemberChangeInfoDetailDo
 */

/**
 * 不同参数如下
 * "memberLevelCode": 1, === memberLevel
 *
 */
@Mapper
public interface OrderInfoToMC {

    OrderInfoToMC INSTANCE = Mappers.getMapper(OrderInfoToMC.class);
    @Mappings({
            @Mapping(source = "memberLevelCode", target = "memberLevel"),
    })
    MemberChangeInfoDetailDo domain2dto(OrderInfoDTO orderInfoDTO);
}
